package com.bw.mallshop.mvvm.view;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.bw.common.mvvm.view.BaseActivity;
import com.bw.mallshop.BR;
import com.bw.mallshop.R;
import com.bw.mallshop.databinding.ActivityEditAddressBinding;
import com.bw.mallshop.entity.ShipAddress;
import com.bw.mallshop.mvvm.viewmodel.ShipAddressViewModel;

public class ShipEdtAddressActivity extends BaseActivity<
        ActivityEditAddressBinding, ShipAddressViewModel> {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getIntent().getExtras()!=null) {
            ShipAddress shipAddress = (ShipAddress) getIntent().getExtras().getSerializable("ship");
            vm.shipAddress = shipAddress;
        }
    }

    @Override
    protected int createvariableId() {
        return BR.vm;
    }

    @Override
    public int bindlayout() {
        return R.layout.activity_edit_address;
    }
}
